import { request } from '@/utils/request'

//发布小纸条功能
export const publishPaper = (formData) => request('/others/publishPaper', 'POST', formData)

//获取数据库中所有小纸条的信息
export const getPublishAllInfo = () => request('/others/getPublishInfo', 'GET')

//获取置顶公告信息
export const getNotceFirst = () => request('/others/getNoticeFirst', 'GET')

//获取所有系统公告信息
export const getAllNotice = () => request('/others/getAllNotice', 'GET')

//根据用户手机号获取用户id接口
export const getuseridByaccount = (account) =>
  request('/others/getuseridByaccount', 'GET', { account })

//获取用户聊天记录接口
export const fetchChatMessages = (senderId, receiverId) =>
  request('/others/fetchChatMessages', 'GET', { senderId, receiverId })

//根据咨询师姓名查询咨询师所有信息
export const getconsultantInfoByName = (name) =>
  request('/others/getconsultantInfoByName', 'GET', { name })
